package system_design.home.shiti;

import system_design.home.jiekou.*;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LENOVO
 * Date: 2022-01-05
 * Time: 16:24
 */
public class Employees extends User{
    public Employees(String name) {//构造方法
        super(name);
        this.iOperation = new IOperation[]{//包含各种操作
                new ExitOperation(),
                new FindOperation(),
                new AddOperation(),
                new DelOperation(),
                new DispalyOperation()
        };
    }

    public int menu(){
        System.out.println("=====管理员菜单=====");
        System.out.println("Hello  " + this.name + "欢迎来到客户订购系统");
        System.out.println("1.查找商品");
        System.out.println("2.新增商品");
        System.out.println("3.删除商品");
        System.out.println("4.显示商品");
        System.out.println("5.修改商品");
        System.out.println("0.退出菜单");
        System.out.println("==================");
        Scanner input  = new Scanner(System.in);
        int choice = input.nextInt();
        return choice;//返回用户的选择

    }
}
